package com.miyake.dsp.analyzer;

import com.miyake.dsp.ComplexArray;
import com.miyake.dsp.Processor;
import com.miyake.dsp.ScilabExecute;

public class FftImplScilab implements Processor {

	private ComplexArray source;

	@Override
	public void setSource(ComplexArray source) {
		this.source = source;
	}

	@Override
	public ComplexArray getProcessed() {
		return ScilabExecute.execute("y=fft(data);", source, "y");
	}

	@Override
	public ComplexArray getSource() {
		return this.source;
	}

	@Override
	public Object getSetting() {
		return new FftSetting();
	}

}
